<style tyle="text/css">
    .modal-lg {
        width: 60%;
    }
</style>
<div class="modal-header">
	<h4 class="modal-title">添加产品</h4>
</div>
<div class="modal-body">
	<div class="row">
		<div class="col-xs-10 col-xs-offset-2">
      <div class="form-group">
        <label class="col-lg-3 control-label">产品名称:</label>
        <div class="col-sm-5">
          <ui-select ng-model="obj.sale_code" theme="bootstrap">
            <ui-select-match placeholder="请选择产品名称">{{$select.selected.name}}</ui-select-match>
            <ui-select-choices repeat="item.code as item in sale_list | filter: $select.search">
              <span ng-bind-html="item.name | highlight: $select.search"></span>
            </ui-select-choices>
          </ui-select>
        </div>
      </div>
		</div>
	</div>
</div>
<div class="modal-footer">
	<button class="btn btn-primary" type="button" ng-click="ok()">OK</button>
	<button class="btn btn-warning" type="button" ng-click="cancel()">返回</button>
</div>